
:root {
    --main-blue: #4ea3ff;
    --primary: #2d6dff;
    --bg-dark: #0d0f1a;
}

html, body {
    font-family: "Vazirmatn", sans-serif;
    background: var(--bg-dark);
    color: #fff;
}

/* همه CSS های سفارشی تو اینجا می‌ماند */
.animate-fadeUp {
    animation: fadeUp 1s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-floaty {
    animation: floaty 3s infinite ease-in-out;
}

@keyframes floaty {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.title {
    position: relative;
}

.title-underline::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 60px;
    height: 4px;
    border-radius: 10px;
    background: var(--main-blue);
    animation: stretch 2s infinite alternate;
}

@keyframes stretch {
    from {
        width: 30px;
    }
    to {
        width: 90px;
    }
}

.bar {
    background: #1b1f2e;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.bar > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #9333ea);
    width: 0;
    animation: growBar 2s forwards;
}

@keyframes growBar {
    from {
        width: 0;
    }
    to {
        width: var(--w);
    }
}

.card-hover:hover {
    transform: translateY(-8px) scale(1.03);
}

textarea {
    resize: none;
    overflow: hidden;
}

.focus-outline:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 163, 255, 0.12);
    border-color: var(--main-blue);
    background: #161926;
}

.price-card-hover:hover {
    transform: translateY(-6px) scale(1.03);
    border-color: rgba(45, 109, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

/*btn-skills*/

.ripple {
    position: relative;
    overflow: hidden;
    background: #4ea3ff;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ripple:hover {
    background: #2d6dff;
}

.ripple::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 50%;
    transform: scale(1);
    animation: ripple 0.6s ease-out;
}

.ripple:active::after {
    opacity: 1;
    transform: scale(80);
}

@keyframes ripple {
    to {
        opacity: 0;
    }
}

/*header*/

.shine,
.shine-purple {
    position: relative;
    overflow: hidden;
}


.shine::after,
.shine-purple::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -50%;
    width: 70%;
    height: 180%;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg) translateX(-120%);
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0;
}


.shine:hover::after,
.shine-purple:hover::after {
    opacity: 1;
    transform: rotate(25deg) translateX(180%);
}


@media (max-width: 768px) {

    .shine:active::after,
    .shine-purple:active::after {
        opacity: 1;
        transform: rotate(25deg) translateX(180%);
    }


    .shine::after,
    .shine-purple::after {
        width: 85%;
        height: 200%;
        transition-duration: 0.6s;
        opacity: 0.15;
    }
}
